function submitPage(obj,type) {
	var ids = "";
	if(type == '1'){
		$("[name='ids']").each(function() {
			ids += $(this).val() + ",";
		});
	}else{
		ids = $(obj).attr("name")+",";
	}
	API.icdDiseaseSymptomSubmitPage({"ids":ids,"type":type}, function(res) {
		UTIL.releaseButton(obj);
		if (res.code == '0') {
			if(res.desc ){
				alert(res.desc);
			}
			window.location.reload();
			UTIL.releaseButton(obj);
			return true;
		} else {
			alert(res.desc);
		}
	});
}





function changeFlag(obj,id,type,checkFlag){
	var flag = '0';
	var ids = '0';
	if(id){
		//取反
		if($("#"+id).is(':checked') == false){
			flag = '0';
		}else{
			flag = '1';
		}
		ids = id;
	}else{
		if($(obj).is(':checked') == false){
			flag = '1';
		}else{
			flag = '0';
		}
		 ids = $(obj).val();
	}
	API.icdDiseaseSymptomChangeFlag({"ids" : ids,"flag":flag}, function(res) {
		if (res.code == '0') {
			if(type == 's'&& checkFlag =='0' ){
				
			}else{
				window.location.href = "/icd/disease_symptom_list.htm?" + $("#currentParam").val();
			}
		} else {
			alert("提交失败！");
		}
		UTIL.releaseButton(obj);
	});
}